<%@ page import="com.jeff.grailsstudy.BookBatch" %>



<div class="fieldcontain ${hasErrors(bean: bookBatchInstance, field: 'publisher', 'error')} ">
	<label for="publisher">
		<g:message code="bookBatch.publisher.label" default="Publisher" />
		
	</label>
	<g:textField name="publisher" value="${bookBatchInstance?.publisher}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: bookBatchInstance, field: 'title', 'error')} required">
	<label for="title">
		<g:message code="bookBatch.title.label" default="Title" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="title" maxlength="6" required="" value="${bookBatchInstance?.title}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: bookBatchInstance, field: 'size', 'error')} required">
	<label for="size">
		<g:message code="bookBatch.size.label" default="Size" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="size" type="number" min="3" value="${bookBatchInstance.size}" required=""/>
</div>

